﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'PRC_TB_USER_TASK_HISTORY_CHANGE_REQUEST_MOTIVATION_IN')
	BEGIN
		DROP  Procedure  dbo.PRC_TB_USER_TASK_HISTORY_CHANGE_REQUEST_MOTIVATION_IN
	END

GO

CREATE Procedure dbo.PRC_TB_USER_TASK_HISTORY_CHANGE_REQUEST_MOTIVATION_IN
	(
		@TUHM_HISTORY_ID INT,
		@TUHM_CHANGE_REQUEST_MOTIVATION_ID INT
	)
AS

INSERT INTO TB_USER_TASK_HISTORY_CHANGE_REQUEST_MOTIVATION
(TUHM_HISTORY_ID,
TUHM_CHANGE_REQUEST_MOTIVATION_ID)
VALUES
(@TUHM_HISTORY_ID,
@TUHM_CHANGE_REQUEST_MOTIVATION_ID)

GO

GRANT EXEC ON dbo.PRC_TB_USER_TASK_HISTORY_CHANGE_REQUEST_MOTIVATION_IN TO PUBLIC

GO

